home *** CD-ROM | disk | FTP | other *** search
/ Saar AMOK 2 / Saar AMOK II - Oktober 1994 (1994)(Kreativ Marketing)(DE)[!][I-7598].iso / disks / 651_700 / 660 / screenselect / screenselect.install < prev    next >
Text File  |  1993-10-03  |  5KB  |  262 lines

  1. (set #screenselectcopyhelp (cat
  2.     "This is the directory you want ScreenSelect program "
  3.     "to be installed. If you want ScreenSelect always to start "
  4.     "in boot up process then you should install it to "
  5.     "WBStartup-directory.") )
  6.  
  7.  
  8. (set #tooltypeshelp (cat
  9.     "These are the commodity tooltypes for "
  10.     "ScreenSelect. If you have made the "
  11.     "installation to WBStartup then you should "
  12.     "set the DONOTWAIT tooltype.\n") )
  13.  
  14. (set #screenselectprefscopyhelp (cat
  15.     "This is the directory you want ScreenSelect "
  16.        "Preferences setting program to be installed. "
  17.        "For maximum consistency with system preferences "
  18.        "programs you should install it to Prefs-directory.") )
  19.  
  20. (set #doccopyhelp (cat
  21.     "Select documentation files for ScreenSelect and "
  22.     "ScreenSelectPrefs programs you want to be installed." )
  23. )
  24.  
  25. (set #stickyask (cat
  26.     "Do you want to install StickySelect?" )
  27. )
  28.  
  29. (set ver (/ (getversion "workbench.library") 65536) )
  30.  
  31.  
  32. (complete 0)
  33.  
  34. (set #destination
  35.         (askdir
  36.             (prompt "Where to install ScreenSelect program?")
  37.             (help #screenselectcopyhelp )
  38.             (default "SYS:WBStartup/")
  39.         )
  40. )
  41.  
  42. (set @default-dest #destination)
  43.  
  44. (message "Copy ScreenSelect to " #destination " directory?\n")
  45.  
  46. (copyfiles (source "ScreenSelect")
  47.            (dest #destination)
  48.            (infos)
  49. )
  50.  
  51. (complete 30)
  52.  
  53.  
  54. (set #tooltypeopts
  55.         (askoptions
  56.             (prompt "Which tooltypes you want to set for ScreenSelect\n")
  57.             (help #tooltypeshelp)
  58.             (choices "CX_POPUP" "CX_PRI" "CX_POPKEY")
  59.             (default 0)
  60.         )
  61. )
  62.  
  63. (if (IN #tooltypeopts 0)
  64.         (tooltype
  65.             (dest
  66.                     (tackon
  67.                         #destination "ScreenSelect")
  68.                     )
  69.             (settooltype "CX_POPUP" "")
  70.             (noposition) ) )
  71.  
  72. (if (IN #tooltypeopts 1)
  73.         (tooltype
  74.             (dest
  75.                     (tackon
  76.                         #destination "ScreenSelect")
  77.                     )
  78.             (settooltype "CX_PRI"
  79.                     (cat
  80.                             (asknumber
  81.                                     (prompt "ScreenSelect commodity priority?")
  82.                                     (help "")
  83.                                     (range -127 127)
  84.                                     (default 0)
  85.                             )
  86.                     )
  87.             )
  88.             (noposition)
  89.         )
  90. )
  91.  
  92. (if (IN #tooltypeopts 2)
  93.         (tooltype
  94.             (dest (tackon #destination "ScreenSelect") )
  95.             (settooltype "CX_POPKEY"
  96.                     (askstring
  97.                         (prompt "ScreenSelect popkey string?")
  98.                         (help
  99.                                 (cat
  100.                                     "You can also set popkey string with\n"
  101.                                     "ScreenSelectPrefs program.")
  102.                                 )
  103.                         (default "shift esc")
  104.                     )
  105.             )
  106.             (noposition)
  107.         )
  108. )
  109.  
  110. (complete 50)
  111.  
  112. (set #prefs
  113.         (askdir
  114.             (prompt "Where to install ScreenSelectPrefs program?")
  115.             (help #screenselectprefscopyhelp)
  116.             (default "SYS:Prefs/")
  117.         )
  118. )
  119.  
  120. (message "Copy ScreenSelectPrefs to " #prefs " directory?\n")
  121.  
  122. (copyfiles (source "ScreenSelectPrefs")
  123.            (dest #prefs)
  124.            (infos) )
  125.  
  126. (set #prefsinrightplace (IN (exists "SYS:Prefs/ScreenSelectPrefs" (noreq)) 0))
  127.  
  128. (if (= 0 #prefsinrightplace)
  129.         (tooltype (dest (tackon #destination "ScreenSelect"))
  130.                   (settooltype "PREFSPROGRAM" (tackon #prefs "ScreenSelectPrefs"))
  131.                   (noposition)
  132.         )
  133. )
  134.  
  135. (complete 70)
  136.  
  137. (if (= 1 (askbool
  138.             (prompt #stickyask)
  139.             (help "")
  140.             (default 1)
  141.          )
  142.     )
  143.     (
  144.         (set #stickydir
  145.             (askdir
  146.                 (prompt "Where to install StickySelect program?")
  147.                 (help "")
  148.                 (default "C:")
  149.             )
  150.         )
  151.  
  152.         (copyfiles
  153.             (source "StickySelect/StickySelect")
  154.             (dest #stickydir)
  155.             (infos)
  156.         )
  157.     )
  158. )
  159.  
  160.  
  161. (complete 80)
  162.  
  163. (set #docfiles
  164.         (askoptions
  165.             (prompt "Which document files you want to install?\n")
  166.             (help #doccopyhelp)
  167.             (choices "ScreenSelect.doc   - ASCII document."
  168.                      "ScreenSelect.guide - AmigaGuide document."
  169.                      "ScreenSelect.dvi   - Document in DVI format."
  170.                      )
  171.             (default 2)
  172.         )
  173. )
  174.  
  175. (if (= 0 #docfiles)
  176.         (message "No document files installed!\n")
  177.         (
  178.             (set #docdir
  179.                     (askdir
  180.                         (prompt "Where to install document files?")
  181.                         (help "" )
  182.                         (default "WORK:")
  183.                     )
  184.             )
  185.  
  186.             (complete 85)
  187.  
  188.             (if (IN #docfiles 0)
  189.                 (
  190.                     (copyfiles
  191.                             (source "Docs/ScreenSelect.doc")
  192.                                (dest #docdir)
  193.                                (infos)
  194.  
  195.                     )
  196.  
  197.                     (set #docfilename
  198.                             (tackon #docdir "ScreenSelect.doc")
  199.                     )
  200.  
  201.                     (if (> ver 38)
  202.                             (tooltype
  203.                                 (dest #docfilename)
  204.                                 (setdefaulttool "MultiView")
  205.                                 (noposition)
  206.                             )
  207.                             (tooltype
  208.                                 (dest #docfilename)
  209.                                 (setdefaulttool "More")
  210.                                 (noposition)
  211.                             )
  212.                     )
  213.                 )
  214.             )
  215.  
  216.             (complete 90)
  217.  
  218.             (if (IN #docfiles 1)
  219.                 (
  220.                     (copyfiles
  221.                             (source "Docs/ScreenSelect.guide")
  222.                                (dest #docdir)
  223.                                (infos)
  224.  
  225.                     )
  226.  
  227.                     (set #docfilename
  228.                             (tackon #docdir "ScreenSelect.guide")
  229.                     )
  230.  
  231.                     (if (> ver 38)
  232.                             (tooltype
  233.                                 (dest #docfilename)
  234.                                 (setdefaulttool "MultiView")
  235.                                 (noposition)
  236.                             )
  237.                             (tooltype
  238.                                 (dest #docfilename)
  239.                                 (setdefaulttool "AmigaGuide")
  240.                                 (noposition)
  241.                             )
  242.                     )
  243.                 )
  244.             )
  245.  
  246.             (complete 95)
  247.  
  248.             (if (IN #docfiles 2)
  249.                     (copyfiles
  250.                             (source "Docs/ScreenSelect.dvi")
  251.                                (dest #docdir)
  252.                                (infos)
  253.  
  254.                     )
  255.             )
  256.         )
  257. )
  258.  
  259.  
  260. (complete 100)
  261.  
  262.